package com.woniuxy.woniufp.system.service.impl;

import com.woniuxy.woniufp.system.entity.UserCard;
import com.woniuxy.woniufp.system.mapper.UserCardMapper;
import com.woniuxy.woniufp.system.service.IUserCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserCardServiceImpl implements IUserCardService {
    @Autowired
    UserCardMapper userCardMapper ;

    @Override
    public UserCard findUserCardByPhone(String phone) {
        return userCardMapper.selectUserCardByPhonr(phone);
    }

    @Override
    public void saveuserCard(UserCard userCard) {
        userCardMapper.insert(userCard);
    }

    @Override
    public void modifyBankInfoByUserId(Long userid, String bnakNo, String bankTitle) {
        userCardMapper.updateBankInfoByUserId(userid,bnakNo,bankTitle);
    }
}
